@import "bootstrap";

/* mixins, variables, etc. */

$grayMediumLight: #eaeaea;

@mixin box_sizing {
-moz-box-sizing: border-box; 
-webkit-box-sizing: border-box; 
box-sizing: border-box;
}

/* universal */

html {
overflow-y: scroll;
}

body {
padding-top: 60px;
}

section {
overflow: auto;
}

textarea {
resize: vertical;
}

.center {
text-align: center;
h1 {
margin-bottom: 10px;
}
}

/* typography */

h1, h2, h3, h4, h5, h6 {
line-height: 1;
}

h1 {
font-size: 3em;
letter-spacing: -2px;
margin-bottom: 30px;
text-align: center;
}

h2 {
font-size: 1.7em;
letter-spacing: -1px;
margin-bottom: 30px;
text-align: center;
font-weight: normal;
color: $grayLight;
}

p {
font-size: 1.1em;
line-height: 1.7em;
}


/* header */
#logo {
float: left;
margin-right: 10px;
font-size: 1.7em;
color: white;
text-transform: uppercase;
letter-spacing: -1px;
padding-top: 9px;
font-weight: bold;
line-height: 1;
&:hover {
color: white;
text-decoration: none;
}
}
.login{
text-align: right;
}
/* footer */

footer {
margin-top: 45px;
padding-top: 5px;
border-top: 1px solid $grayMediumLight;
color: $grayLight;
a {
color: $gray;
&:hover { 
color: $grayDarker;
}
}  
small { 
float: left; 
}
ul {
float: right;
list-style: none;
li {
float: left;
margin-left: 10px;
}
}
}

/* search */
.search{
margin-top:20px;
}
/* miscellaneous */

.debug_dump {
clear: both;
float: left;
width: 100%;
margin-top: 45px;
@include box_sizing;
}
/* sidebar */

aside {
section {
padding: 10px 0;
border-top: 1px solid $grayLighter;
&:first-child {
border: 0;
padding-top: 0;
}
span {
display: block;
margin-bottom: 3px;
line-height: 1;
}
h1 {
font-size: 1.4em;
text-align: left;
letter-spacing: -1px;
margin-bottom: 3px;
margin-top: 0px;
}
}
}

.gravatar {
float: left;
margin-right: 10px;
}
.stats {
overflow: auto;
a {
float: left;
padding: 0 10px;
border-left: 1px solid $grayLighter;
color: gray;
&:first-child {
padding-left: 0;
border: 0;
}
&:hover {
text-decoration: none;
color: $blue;
}
}
strong {
display: block;
}
}

.user_avatars {
overflow: auto;
margin-top: 10px;
.gravatar {
margin: 1px 1px;
}
}

/* forms */

input, textarea, select, .uneditable-input {
border: 1px solid #bbb;
width: 100%;
margin-bottom: 15px;
@include box_sizing;
}

input {
height: auto !important;
}
#error_explanation {
color: #f00;
ul {
list-style: none;
margin: 0 0 18px 0;
}
}

.field_with_errors {
@extend .control-group;
@extend .error;
}
/* users index */

.users {
list-style: none;
margin: 0;
li {
overflow: auto;
padding: 10px 0;
border-top: 1px solid $grayLighter;
&:last-child {
border-bottom: 1px solid $grayLighter;
}
}
}
/* microposts */

.microposts {
list-style: none;
margin: 10px 0 0 0;

li {
padding: 10px 0;
border-top: 1px solid #e8e8e8;
}
}
.content {
display: block;
}
.timestamp {
color: $grayLight;
}
.gravatar {
float: left;
margin-right: 10px;
}
aside {
textarea {
height: 100px;
margin-bottom: 5px;
}
}

/* Product */
.box-product {
float: left;
height: 310px;
margin: 5px 5px 40px;
padding: 3px 0px 0px;
text-align: center;
width: 150px;
border: 1px solid #CCCCCC;
border-radius: 4px 4px 4px 4px;
}
.box-product:hover{
box-shadow: 0px 5px 11px #ccc;
}
.box-product .brief{
height:250px;
}
.box-product .brief a{
color:#555555;
}
.box-product .thumb{
height:160px;
}
.box-product .thumb img{
height: 310px;
border-radius: 4px 4px 4px 4px;
}
.box-product h2 {
color: #444444;
font-size: 16px;
margin: 7px auto;
}
.box-product a {
color: #0088CC;
font-size: 14px;
font-weight: bold;
margin: 7px auto;
text-decoration: none;
}
.detail-brief{
width:100%;
}
.detail-brief .show-img{
width:300px;
float: left;
margin-bottom: 20px;
}
.detail-brief .show-img img{
width:280px;
height:auto;
}
.detail-brief .show-brief{
width:350px;
height:auto;
float:left;
line-height: 35px;
}
.detail-brief .show-brief .title{
font-size: 18px;
line-height:35px;
color: orangered;
}
.detail-brief .show-brief .desc{
line-height:30px;
}

.list-product{
margin:0;
padding: 0;
list-style: none;
}
.list-product li {
border-bottom: 1px dashed #CCCCCC;
display: block;
padding: 8px 0;
}

.stickytooltip{
box-shadow: 5px 5px 8px #818181; /*shadow for CSS3 capable browsers.*/
-webkit-box-shadow: 5px 5px 8px #818181;
-moz-box-shadow: 5px 5px 8px #818181;
display:none;
position:absolute;
display:none;
border:5px solid black; /*Border around tooltip*/
background:white;
z-index:3000;
text-align:center;
min-width: 310px;
}


.stickytooltip .stickystatus{ /*Style for footer bar within tooltip*/
background:black;
color:white;
padding-top:5px;
text-align:center;
font:bold 11px Arial;
}
.stickytooltip img{
min-width:300px;
height: auto;
}
.atip{
max-width:350px;
}
.header-title{
border-bottom: 3px solid #000000; 
line-height:30px;
font-size: 20px;
margin-bottom: 0px;
}
.cart img{
max-width:150px;
}
.cart .price{
color: red;
font-weight:bold;
}
.cart .total{
text-align:right;
font-weight: bold;
}

/*Custom bootstrap*/
.navbar .brand {
font-family: 'Lobster',cursive;
font-weight:bold;
}

#cart_display{
color: #FFFFFF;
}


/*Slide Show*/
#gallery {
position:relative;
height:300px;
padding:5px;
}
#gallery a {
float:left;
position:absolute;
}

#gallery a img {
border:none;
width:208px;
height:240px;
}

#gallery a.show {
z-index:500
}

#gallery .caption {
z-index:600; 
background-color:#000; 
color:#ffffff; 
height:65px; 
width:100%; 
position:absolute;
bottom:0;
}

#gallery .caption .content {
margin:5px
}

#gallery .caption .content h3 {
margin:0;
padding:0;
color:#1DCCEF;
}
.shadow-5{
box-shadow: 0px 5px 5px #999;
border-radius: 0px 0px 5px 5px;
}